// 导入工具类 @项目根路径
import request from "@/utils/request"

//获取所有牙科需求信息
export const getAllTypeDetails = (detail) => {
    //数据处理
    if(detail.flag==0){
        return request.get(`/requirement-type-detail/getAllTypeDetail`,detail);
    }else{
        return request.get(`/requirement-type-detail/getAllTypeDetails`,detail);
    }
}
//添加牙科需求信息
export const addTypeDetail = () => {
    //数据处理
    return request.post("/requirement-type-detail/insertTypeDetail");
}
//修改牙科需求信息
export const updateTypeDetail = () => {
    //数据处理
    return request.post("/requirement-type-detail/updateTypeDetail");
}
//注销牙科需求信息
export const delTypeDetail = (detail) => {
    //数据处理
    return request.get(`/requirement-type-detail/delTypeDetail`,detail);
}